package cn.kgc.viny.smbms.service.impl;

import cn.kgc.viny.smbms.entity.Address;
import cn.kgc.viny.smbms.mapper.AddressMapper;
import cn.kgc.viny.smbms.service.AddressService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class AddressServiceImpl implements AddressService {
    @Resource
    private AddressMapper addressMapper;
    @Override
    public List<Address> findAddressByUserId(Long userId) {
        return this.addressMapper.selectAddressByUserId(userId);
    }
}
